<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>即时库存报表</title>
</head>
	<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="/wms/js/plugins/jquery-easyui/themes/icon.css">
	<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.min.js"></script>
	<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="/wms/js/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="/wms/js/plugins/fancybox/jquery.fancybox.js?v=2.1.5"></script>
	<link rel="stylesheet" type="text/css" href="/wms/js/plugins/fancybox/jquery.fancybox.css?v=2.1.5" media="screen" />
	<script type="text/javascript" src="/wms/js/common/common.js"></script>
	<script type="text/javascript" src="/wms/js/common/productStock.js"></script>
<body class="easyui-layout">
	<div data-options="region:'north',border:false" style="height: 10%">
		<form id="queryForm" method="post" action="/wms/productStock.action" style="margin-top: 15px">
			关键字&nbsp;<s:textfield name="qo.keyword" />&nbsp;
			所在仓库&nbsp;<s:select name="qo.depotId" list="#depots" listKey="id" listValue="name" headerKey="-1" headerValue="全部"></s:select>&nbsp;
			所属品牌&nbsp;<s:select name="qo.brandId" list="#brands" listKey="id" listValue="name" headerKey="-1" headerValue="全部"></s:select>&nbsp;
			阈值&nbsp;<s:textfield name="qo.stockLimit" />&nbsp;
			<a class="easyui-linkbutton" data-options="text:'查询',iconCls:'icon-search'" onclick="query()"></a>
		</form>
	</div>
	<div data-options="region:'south',border: false" style="height: 90%">
		<table id="table_datagrid">
			<thead>
				<tr>
					<th data-options="field:'product.sn',align:'center'">货品编号</th>
					<th data-options="field:'product.name',width:2,align:'center'">货品名称</th>
					<th data-options="field:'depot.name',width:1,align:'center'">所在仓库</th>
					<th data-options="field:'product.brand.name',width:1,align:'center'">所属品牌</th>
					<th data-options="field:'price',width:1,align:'center'">库存价格</th>
					<th data-options="field:'stockNumber',width:1,align:'center'">库存量</th>
					<th data-options="field:'amount',width:1,align:'center'">库存总金额</th>
				</tr>
			</thead>
			<tbody>
				<s:iterator value="#objs">
					<tr>
						<td><s:property value="product.sn" /></td>
						<td><s:property value="product.name" /></td>
						<td><s:property value="depot.name" /></td>
						<td><s:property value="product.brand.name" /></td>
						<td><s:property value="price" /></td>
						<td><s:property value="stockNumber" /></td>
						<td><s:property value="amount" /></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
		
		<div id="dg_tb" style="display: none">
			<a class="easyui-linkbutton" data-options="text:'刷新',iconCls:'icon-reload',plain:true,onClick:query"></a>
		</div>
	</div>
</body>
</html>
